<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>分类: 日记 | 小小程序员</title><meta name="author" content="十一星野"><meta name="copyright" content="十一星野"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="今天的第一篇笔记，用来记录昨天 使用 gitlab 的坑 项目名称必须是 ko25891wan.gitlab.io window 错误的123456789101112131415161718concurrent &#x3D; 1check_interval &#x3D; 0shutdown_timeout &#x3D; 0[session_server]  session_timeout &#x3D; 1800[[runners]]">
<meta property="og:type" content="article">
<meta property="og:title" content="2023-11-30">
<meta property="og:url" content="https://ko25891wan.gitlab.io/2023/11/774231422346.html">
<meta property="og:site_name" content="小小程序员">
<meta property="og:description" content="今天的第一篇笔记，用来记录昨天 使用 gitlab 的坑 项目名称必须是 ko25891wan.gitlab.io window 错误的123456789101112131415161718concurrent &#x3D; 1check_interval &#x3D; 0shutdown_timeout &#x3D; 0[session_server]  session_timeout &#x3D; 1800[[runners]]">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/%E5%A4%B4%E5%83%8F/%E7%81%B0%E5%A4%AA%E7%8B%BC.png">
<meta property="article:published_time" content="2023-11-30T00:00:00.000Z">
<meta property="article:modified_time" content="2024-02-02T09:10:10.496Z">
<meta property="article:author" content="十一星野">
<meta property="article:tag" content="宅男,热血">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/%E5%A4%B4%E5%83%8F/%E7%81%B0%E5%A4%AA%E7%8B%BC.png"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://ko25891wan.gitlab.io/2023/11/774231422346.html"><link rel="preconnect" href="//fastly.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.5.1/css/all.min.css"><link rel="stylesheet" href="https://cdn.staticfile.org/fancyapps-ui/5.0.32/fancybox/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
  root: '/',
  algolia: undefined,
  localSearch: {"path":"/search.xml","preload":false,"top_n_per_article":1,"unescape":false,"languages":{"hits_empty":"找不到您查询的内容：${query}","hits_stats":"共找到 ${hits} 篇文章"}},
  translate: {"defaultEncoding":1,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"简"},
  noticeOutdate: undefined,
  highlight: {"plugin":"highlight.js","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":200},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: true,
    post: true
  },
  runtime: '',
  dateSuffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  infinitegrid: {
    js: 'https://cdn.staticfile.org/egjs-infinitegrid/4.11.0/infinitegrid.min.js',
    buttonText: '加载更多'
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: true,
  },
  autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '分类: 日记',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2024-02-02 17:10:10'
}</script><script>(win=>{
      win.saveToLocal = {
        set: (key, value, ttl) => {
          if (ttl === 0) return
          const now = Date.now()
          const expiry = now + ttl * 86400000
          const item = {
            value,
            expiry
          }
          localStorage.setItem(key, JSON.stringify(item))
        },
      
        get: key => {
          const itemStr = localStorage.getItem(key)
      
          if (!itemStr) {
            return undefined
          }
          const item = JSON.parse(itemStr)
          const now = Date.now()
      
          if (now > item.expiry) {
            localStorage.removeItem(key)
            return undefined
          }
          return item.value
        }
      }
    
      win.getScript = (url, attr = {}) => new Promise((resolve, reject) => {
        const script = document.createElement('script')
        script.src = url
        script.async = true
        script.onerror = reject
        script.onload = script.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          script.onload = script.onreadystatechange = null
          resolve()
        }

        Object.keys(attr).forEach(key => {
          script.setAttribute(key, attr[key])
        })

        document.head.appendChild(script)
      })
    
      win.getCSS = (url, id = false) => new Promise((resolve, reject) => {
        const link = document.createElement('link')
        link.rel = 'stylesheet'
        link.href = url
        if (id) link.id = id
        link.onerror = reject
        link.onload = link.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          link.onload = link.onreadystatechange = null
          resolve()
        }
        document.head.appendChild(link)
      })
    
      win.activateDarkMode = () => {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = () => {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
        if (t === 'dark') activateDarkMode()
        else if (t === 'light') activateLightMode()
      
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
      const detectApple = () => {
        if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
          document.documentElement.classList.add('apple')
        }
      }
      detectApple()
    })(window)</script><meta name="generator" content="Hexo 6.3.0"></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><script>(()=>{
  const $loadingBox = document.getElementById('loading-box')
  const $body = document.body
  const preloader = {
    endLoading: () => {
      $body.style.overflow = ''
      $loadingBox.classList.add('loaded')
    },
    initLoading: () => {
      $body.style.overflow = 'hidden'
      $loadingBox.classList.remove('loaded')
    }
  }

  preloader.initLoading()
  window.addEventListener('load',() => { preloader.endLoading() })

  if (false) {
    document.addEventListener('pjax:send', () => { preloader.initLoading() })
    document.addEventListener('pjax:complete', () => { preloader.endLoading() })
  }
})()</script><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/%E5%A4%B4%E5%83%8F/%E7%81%B0%E5%A4%AA%E7%8B%BC.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">120</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">4</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">22</div></a></div><hr class="custom-hr"/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fa fa-heartbeat"></i><span> 清单</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/Gallery/"><i class="fa-fw fas fa-images"></i><span> 照片</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-tools"></i><span> 工具</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/md_editor/"><i class="fa-fw fas fa-pen"></i><span> MDEditor_my</span></a></li></ul></div></div></div></div><div class="post" id="body-wrap"><header class="not-top-img" id="page-header"><nav id="nav"><span id="blog-info"><a href="/" title="小小程序员"><span class="site-name">小小程序员</span></a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search" href="javascript:void(0);"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fa fa-heartbeat"></i><span> 清单</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/Gallery/"><i class="fa-fw fas fa-images"></i><span> 照片</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-tools"></i><span> 工具</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/md_editor/"><i class="fa-fw fas fa-pen"></i><span> MDEditor_my</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav></header><main class="layout" id="content-inner"><div id="post"><div id="post-info"><h1 class="post-title">2023-11-30</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-11-30T00:00:00.000Z" title="发表于 2023-11-30 08:00:00">2023-11-30</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-02-02T09:10:10.496Z" title="更新于 2024-02-02 17:10:10">2024-02-02</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E6%97%A5%E8%AE%B0/">日记</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">1k</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>4分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="2023-11-30"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div><article class="post-content" id="article-container"><p>今天的第一篇笔记，用来记录昨天 使用 gitlab 的坑</p>
<h1 id="项目名称"><a href="#项目名称" class="headerlink" title="项目名称"></a>项目名称</h1><p>必须是 <a href="http://ko25891wan.gitlab.io/"><strong>ko25891wan.gitlab.io</strong></a></p>
<h1 id="window-错误的"><a href="#window-错误的" class="headerlink" title="window 错误的"></a>window 错误的</h1><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">concurrent = 1</span><br><span class="line">check_interval = 0</span><br><span class="line">shutdown_timeout = 0</span><br><span class="line"></span><br><span class="line">[session_server]</span><br><span class="line">  session_timeout = 1800</span><br><span class="line"></span><br><span class="line">[[runners]]</span><br><span class="line">  name = &quot;DESKTOP-MN6T2AP&quot;</span><br><span class="line">  url = &quot;https://gitlab.com/&quot;</span><br><span class="line">  id = 29871500</span><br><span class="line">  token = &quot;z-hiKyXHW9yhuuJzriFZ&quot;</span><br><span class="line">  token_obtained_at = 2023-11-29T13:49:41Z</span><br><span class="line">  token_expires_at = 0001-01-01T00:00:00Z</span><br><span class="line">  executor = &quot;shell&quot;  或者 wsgt 都是错误的</span><br><span class="line">  shell = &quot;shell&quot;</span><br><span class="line">  [runners.cache]</span><br><span class="line">    MaxUploadedArchiveSize = 0</span><br></pre></td></tr></table></figure>

<h1 id="window-正确的-config-toml-文件"><a href="#window-正确的-config-toml-文件" class="headerlink" title="window 正确的 config. toml 文件"></a>window 正确的 config. toml 文件</h1><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><span class="line">concurrent = 1</span><br><span class="line">check_interval = 0</span><br><span class="line">shutdown_timeout = 0</span><br><span class="line"></span><br><span class="line">[session_server]</span><br><span class="line">  session_timeout = 1800</span><br><span class="line"></span><br><span class="line">[[runners]]</span><br><span class="line">  name = &quot;DESKTOP-MN6T2AP&quot;</span><br><span class="line">  url = &quot;https://gitlab.com/&quot;</span><br><span class="line">  id = 29871500</span><br><span class="line">  token = &quot;z-hiKyXHW9yhuuJzriFZ&quot;</span><br><span class="line">  token_obtained_at = 2023-11-29T13:49:41Z</span><br><span class="line">  token_expires_at = 0001-01-01T00:00:00Z</span><br><span class="line">  executor = &quot;shell&quot;</span><br><span class="line">  shell = &quot;powershell&quot;</span><br><span class="line">  [runners.cache]</span><br><span class="line">    MaxUploadedArchiveSize = 0</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<h3 id="发生的错误"><a href="#发生的错误" class="headerlink" title="发生的错误"></a>发生的错误</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">Running with gitlab-runner 16.6.1 (f5da3c5a)</span><br><span class="line">  on DESKTOP-MN6T2AP z-hiKyXH, system ID: s_20f9c34bf7c3</span><br><span class="line">Preparing the &quot;shell&quot; executor</span><br><span class="line">00:00</span><br><span class="line">Using Shell (pwsh) executor...</span><br><span class="line">Preparing environment</span><br><span class="line">00:00</span><br><span class="line">ERROR: Job failed (system failure): prepare environment: failed to start process: exec: &quot;pwsh&quot;: executable file not found in %PATH%. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information</span><br></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Preparing the &quot;shell&quot; executor 00:10 ERROR: Preparation failed: shell shell not found Will be retried in 3s ... ERROR: Preparation failed: shell shell not found Will be retried in 3s ... ERROR: Preparation failed: shell shell not found Will be retried in 3s ... ERROR: Job failed (system failure): shell shell not found ```</span><br></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/jokeryy/p/17141367.html">gitlab-runner 运行流水线过程中出现报错 - jokeryy - 博客园 (</a> <a target="_blank" rel="noopener" href="http://cnblogs.com/">cnblogs.com</a> <a target="_blank" rel="noopener" href="https://www.cnblogs.com/jokeryy/p/17141367.html">)</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_40015157/article/details/112217153">查看 Windows PowerShell 版本信息的方法_powershell version-CSDN 博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/zcw_jszs/article/details/132591446?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2~default~YuanLiJiHua~Position-2-132591446-blog-106968373.235%5Ev38%5Epc_relevant_anti_vip_base&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~YuanLiJiHua~Position-2-132591446-blog-106968373.235%5Ev38%5Epc_relevant_anti_vip_base&utm_relevant_index=5">PowerShell 跟新：一行命令即可_powershell 更新-CSDN 博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_38078841/article/details/131697085">更新 Microsoft.PowerShell 遇到 尝试更新源失败： winget-CSDN 博客</a></p>
<h2 id="上面的需要魔法"><a href="#上面的需要魔法" class="headerlink" title="##上面的需要魔法"></a>##上面的需要魔法</h2><h2 id="下面的不需要魔法"><a href="#下面的不需要魔法" class="headerlink" title="##下面的不需要魔法"></a>##下面的不需要魔法</h2><p><a target="_blank" rel="noopener" href="https://www.newbe.pro/Mirrors/Mirrors-PowerShell/">PowerShell | newbe</a></p>
<h1 id="尝试更新源失败：-winget-搜索源时失败-结果将不包括在内：-winget-找不到与输入条件匹配的程序包。"><a href="#尝试更新源失败：-winget-搜索源时失败-结果将不包括在内：-winget-找不到与输入条件匹配的程序包。" class="headerlink" title="尝试更新源失败： winget 搜索源时失败; 结果将不包括在内： winget 找不到与输入条件匹配的程序包。"></a><strong>尝试更新源失败： winget 搜索源时失败; 结果将不包括在内： winget 找不到与输入条件匹配的程序包。</strong></h1><p>你遇到的问题是在使用 Windows 的 winget 包管理器时无法搜索和找到程序包。这可能是由于以下几个原因：</p>
<ol>
<li><strong>源的问题</strong>：winget 需要从指定的源获取程序包信息。如果这些源有问题，或者你的系统没有正确配置这些源，winget 就可能无法搜索和找到程序包。</li>
<li><strong>网络问题</strong>：winget 需要互联网连接才能从源获取程序包信息。如果你的网络连接有问题，或者你的网络防火墙或代理设置阻止了 winget 的访问，winget 就可能无法正常工作。</li>
<li><strong>输入错误</strong>：如果你搜索的程序包名有误，或者你的搜索条件过于模糊，winget 可能无法找到匹配的程序包。</li>
</ol>
<p>你可以尝试以下步骤来解决这个问题：</p>
<ol>
<li><strong>检查你的源</strong>：运行 <code>winget source list</code> 命令可以查看你当前配置的源。确保这些源是正确的，并且你的系统可以访问这些源。如果需要，你可以使用 <code>winget source add</code> 命令添加新的源。</li>
<li><strong>检查你的网络连接</strong>：确保你的网络连接是正常的，并且你的网络防火墙或代理设置没有阻止 winget 的访问。</li>
<li><strong>检查你的输入</strong>：再次确认你搜索的程序包名是正确的，并且你的搜索条件足够明确。如果需要，你可以尝试使用更具体的搜索条件。</li>
</ol>
<p>如果以上步骤都无法解决问题，你可能需要查看 winget 的详细日志以获取更多信息。你可以通过运行 <code>winget --info</code> 命令获取关于如何启用详细日志的信息。</p>
<p><a target="_blank" rel="noopener" href="https://mirrors.ustc.edu.cn/help/winget-source.html">WinGet 源使用帮助 — USTC Mirror Help 文档</a></p>
<h1 id="更新完上面的后"><a href="#更新完上面的后" class="headerlink" title="更新完上面的后"></a>更新完上面的后</h1><h2 id="修改环境变量"><a href="#修改环境变量" class="headerlink" title="##修改环境变量"></a>##修改环境变量</h2><p>将 C:\Program Files\PowerShell\7\ 置顶</p>
<h2 id="修改文件"><a href="#修改文件" class="headerlink" title="##修改文件"></a>##修改文件</h2><p>还得修改文件</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">concurrent = 1</span><br><span class="line">check_interval = 0</span><br><span class="line">shutdown_timeout = 0</span><br><span class="line"></span><br><span class="line">[session_server]</span><br><span class="line">  session_timeout = 1800</span><br><span class="line"></span><br><span class="line">[[runners]]</span><br><span class="line">  name = &quot;DESKTOP-MN6T2AP&quot;</span><br><span class="line">  url = &quot;https://gitlab.com/&quot;</span><br><span class="line">  id = 29871500</span><br><span class="line">  token = &quot;z-hiKyXHW9yhuuJzriFZ&quot;</span><br><span class="line">  token_obtained_at = 2023-11-29T13:49:41Z</span><br><span class="line">  token_expires_at = 0001-01-01T00:00:00Z</span><br><span class="line">  executor = &quot;shell&quot;</span><br><span class="line">  shell = &quot;pwsh&quot;</span><br><span class="line">  [runners.cache]</span><br><span class="line">    MaxUploadedArchiveSize = 0</span><br></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://blog.iamsjy.com/2020/09/12/create-a-static-blog-with-gitlab-pages/">使用 GitLab Pages 简单搭建静态博客 | Tony’s Blog (</a> <a target="_blank" rel="noopener" href="http://iamsjy.com/">iamsjy.com</a> <a target="_blank" rel="noopener" href="https://blog.iamsjy.com/2020/09/12/create-a-static-blog-with-gitlab-pages/">)</a></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">[32mINFO [39m Validating config</span><br><span class="line">[41mFATAL[49m</span><br><span class="line">[33mTypeError: Invalid config detected: &quot;url&quot; should be a valid URL!</span><br><span class="line">    at module.exports (I:\School\HeGong\23-Down\_文件\hexo\node_modules\hexo\lib\hexo\validate_config.js:16:11)</span><br><span class="line">    at module.exports (I:\School\HeGong\23-Down\_文件\hexo\node_modules\hexo\lib\hexo\load_config.js:37:3)[39m</span><br><span class="line">husky - pre-commit hook exited with code 2 (error)</span><br></pre></td></tr></table></figure>

<h1 id="查看-gitlab-的部署的地址"><a href="#查看-gitlab-的部署的地址" class="headerlink" title="查看 gitlab 的部署的地址"></a>查看 gitlab 的部署的地址</h1><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/Snipaste_2023-11-30_08-39-38.png"></p>
<h1 id="查看-gitlab-的自动构建的情况"><a href="#查看-gitlab-的自动构建的情况" class="headerlink" title="查看 gitlab 的自动构建的情况"></a>查看 gitlab 的自动构建的情况</h1><p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/Snipaste_2023-11-30_08-40-35.png"></p>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/20240202170945.png" alt="image.png"></p>
<p><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/obsition/20240202171005.png" alt="image.png"></p>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta"><i class="fas fa-circle-user fa-fw"></i>文章作者: </span><span class="post-copyright-info"><a href="https://ko25891wan.gitlab.io">十一星野</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta"><i class="fas fa-square-arrow-up-right fa-fw"></i>文章链接: </span><span class="post-copyright-info"><a href="https://ko25891wan.gitlab.io/2023/11/774231422346.html">https://ko25891wan.gitlab.io/2023/11/774231422346.html</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta"><i class="fas fa-circle-exclamation fa-fw"></i>版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://ko25891wan.gitlab.io" target="_blank">小小程序员</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"></div><div class="post_share"></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2023/12/318ef0ec33e5.html" title="校园二手交易 - 项目经理"><div class="cover" style="background: var(--default-bg-color)"></div><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">校园二手交易 - 项目经理</div></div></a></div><div class="next-post pull-right"><a href="/2023/11/896d5e4839d3.html" title="添加第二篇博客"><div class="cover" style="background: var(--default-bg-color)"></div><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">添加第二篇博客</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://qiniu.ko25891wan.top/%E6%97%A5%E8%AE%B0%E8%BD%AF%E4%BB%B6/%E5%A4%B4%E5%83%8F/%E7%81%B0%E5%A4%AA%E7%8B%BC.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">十一星野</div><div class="author-info__description">归途也还可爱</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">120</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">4</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">22</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://gitlab.com/ko25891wan/ko25891wan.gitlab.io"><i class="fab fa-github"></i><span>关注我</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://gitlab.com/ko25891wan/ko25891wan.gitlab.io" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="https://gitlab.com/ko25891wan/ko25891wan.gitlab.io" target="_blank" title="Gitlab"><i class="fab fa-gitlab" style="color: #24292e;"></i></a><a class="social-icon" href="mailto:ko25891wan@outlook.com" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #4a7dbe;"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#%E9%A1%B9%E7%9B%AE%E5%90%8D%E7%A7%B0"><span class="toc-number">1.</span> <span class="toc-text">项目名称</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#window-%E9%94%99%E8%AF%AF%E7%9A%84"><span class="toc-number">2.</span> <span class="toc-text">window 错误的</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#window-%E6%AD%A3%E7%A1%AE%E7%9A%84-config-toml-%E6%96%87%E4%BB%B6"><span class="toc-number">3.</span> <span class="toc-text">window 正确的 config. toml 文件</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%8F%91%E7%94%9F%E7%9A%84%E9%94%99%E8%AF%AF"><span class="toc-number">3.0.1.</span> <span class="toc-text">发生的错误</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%B8%8A%E9%9D%A2%E7%9A%84%E9%9C%80%E8%A6%81%E9%AD%94%E6%B3%95"><span class="toc-number">3.1.</span> <span class="toc-text">##上面的需要魔法</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%B8%8B%E9%9D%A2%E7%9A%84%E4%B8%8D%E9%9C%80%E8%A6%81%E9%AD%94%E6%B3%95"><span class="toc-number">3.2.</span> <span class="toc-text">##下面的不需要魔法</span></a></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E5%B0%9D%E8%AF%95%E6%9B%B4%E6%96%B0%E6%BA%90%E5%A4%B1%E8%B4%A5%EF%BC%9A-winget-%E6%90%9C%E7%B4%A2%E6%BA%90%E6%97%B6%E5%A4%B1%E8%B4%A5-%E7%BB%93%E6%9E%9C%E5%B0%86%E4%B8%8D%E5%8C%85%E6%8B%AC%E5%9C%A8%E5%86%85%EF%BC%9A-winget-%E6%89%BE%E4%B8%8D%E5%88%B0%E4%B8%8E%E8%BE%93%E5%85%A5%E6%9D%A1%E4%BB%B6%E5%8C%B9%E9%85%8D%E7%9A%84%E7%A8%8B%E5%BA%8F%E5%8C%85%E3%80%82"><span class="toc-number">4.</span> <span class="toc-text">尝试更新源失败： winget 搜索源时失败; 结果将不包括在内： winget 找不到与输入条件匹配的程序包。</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E6%9B%B4%E6%96%B0%E5%AE%8C%E4%B8%8A%E9%9D%A2%E7%9A%84%E5%90%8E"><span class="toc-number">5.</span> <span class="toc-text">更新完上面的后</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BF%AE%E6%94%B9%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F"><span class="toc-number">5.1.</span> <span class="toc-text">##修改环境变量</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BF%AE%E6%94%B9%E6%96%87%E4%BB%B6"><span class="toc-number">5.2.</span> <span class="toc-text">##修改文件</span></a></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E6%9F%A5%E7%9C%8B-gitlab-%E7%9A%84%E9%83%A8%E7%BD%B2%E7%9A%84%E5%9C%B0%E5%9D%80"><span class="toc-number">6.</span> <span class="toc-text">查看 gitlab 的部署的地址</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E6%9F%A5%E7%9C%8B-gitlab-%E7%9A%84%E8%87%AA%E5%8A%A8%E6%9E%84%E5%BB%BA%E7%9A%84%E6%83%85%E5%86%B5"><span class="toc-number">7.</span> <span class="toc-text">查看 gitlab 的自动构建的情况</span></a></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/02/c60470b9a892.html" title="Java集合使用注意事项总结">Java集合使用注意事项总结</a><time datetime="2024-02-03T04:58:22.000Z" title="发表于 2024-02-03 12:58:22">2024-02-03</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/02/81fb7a201f29.html" title="无题">无题</a><time datetime="2024-02-03T03:15:31.812Z" title="发表于 2024-02-03 11:15:31">2024-02-03</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/01/5737c1ec69a9.html" title="Wed Jan 17 2024 00:00:00 GMT+0800 (中国标准时间)">Wed Jan 17 2024 00:00:00 GMT+0800 (中国标准时间)</a><time datetime="2024-01-31T06:56:16.000Z" title="发表于 2024-01-31 14:56:16">2024-01-31</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/01/f510db7d2f19.html" title="Spring常见面试题总结">Spring常见面试题总结</a><time datetime="2024-01-31T06:55:58.000Z" title="发表于 2024-01-31 14:55:58">2024-01-31</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/01/9be065e9f288.html" title="redis 面试">redis 面试</a><time datetime="2024-01-31T06:55:55.000Z" title="发表于 2024-01-31 14:55:55">2024-01-31</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2023 - 2024 By 十一星野</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="translateLink" type="button" title="简繁转换">简</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.staticfile.org/fancyapps-ui/5.0.32/fancybox/fancybox.umd.min.js"></script><script src="https://cdn.staticfile.org/instant.page/5.2.0/instantpage.min.js" type="module"></script><div class="js-pjax"></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div><div id="local-search-stats-wrap"></div></div></div><div id="search-mask"></div><script src="/js/search/local-search.js"></script></div></div></body></html>